<%@ page pageEncoding="UTF-8" contentType="text/xml; charset=utf-8"  %>
<%
	org.languageguide.user.User user = org.languageguide.user.UserManager.getUser(session);
	System.out.println("user on checkin" + user);
	String id = request.getParameter("id");
	String target = request.getParameter("target");
		System.out.println("id on checkin" + id + " " + target);
	org.languageguide.versioncontrol.LockingVersionControl readingVersionControl = new org.languageguide.readings. TranslatedReadingImpl(id, target);
			System.out.println("about to call checkin");
	boolean success = readingVersionControl.checkin(user);
	System.out.println("check worked?" + success);
	//if (update > 0){
		response.setContentType("text/xml");
		response.setHeader("Cache-Control", "no-cache");
		//PrintWriter out = response.getWriter();
		//response.getWriter().write("<message>valid: yo Buddy</message>"); 
		out.print("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
out.print("<response status=\"ok\">");
out.print("</response>");
	//}
%>